package com.itheima.day03;
/*
案例1: switch语句:
            ##减肥计划##
 */

import java.util.Scanner;

public class TestClassCase01 {
    public static void main(String[] args) {

  /*        Scanner sc=new Scanner(System.in);

      while(true) {

            System.out.println("请输入(0为退出):");
            int a = sc.nextInt();

            switch (a) {

                case 1:
                    System.out.println("跑步");
                    break;
                case 2:
                    System.out.println("走路");
                    break;
                case 3:
                    System.out.println("游泳");
                    break;
                case 4:
                    System.out.println("骑单车");
                    break;
                case 5:
                    System.out.println("仰卧起坐");
                    break;
                case 6:
                    System.out.println("跳绳");
                    break;
                case 7:
                    System.out.println("好好吃一顿");
                    break;
                default:
                    System.out.println("输入有误,请重新输入!");
                    break;
            }
        }
*/


       Scanner sc =new Scanner(System.in);
       System.out.println("请输入:");
       int input = sc.nextInt();

       switch(input){
           case 1:
           case 2:
           case 3:
           case 4:
           case 5:
               System.out.println("努力工作,早日买房!!!");
               break;
           case 6:
           case 7:
               System.out.println("终于放假了!!!");
               break;

           default:
               System.out.println("请正确输入!");
               break;
       }


    }




}
